package samples.d2.trames 
{
	import flash.geom.Point;
	import samples.BaseSample;
	import shapes.shapes2D.Circle;
	import shapes.shapes2D.distribution.Circular;
	
	/**
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class CircularSample2 extends BaseSample
	{
		
		public function CircularSample2( jitter:Number = 0 ) 
		{
			
			
			var points:Vector.<Point> = new Circular( 	new Point( sw / 2 , sh / 2 ), 
														200,  
														200 )
														.distribute( 100, true, jitter );
			var c:Circle= new Circle();
			var size:Number = 1;
			var step:Number = .5;
			graphics.beginFill( color );
			for each( var p:Point in points )
			{
				graphics.beginFill( color );
				c.x = p.x;
				c.y = p.y;
				c.radius = size;
				c.draw( graphics );
				size += step;
				graphics.endFill();
			}
			
		}
		
	}

}